From cc94cc77ae9b5a49f392952cfe58f919fe8134fc Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Wed, 22 Feb 2006 09:11:59 +0000 Subject: [PATCH] Fix for parser test "Magic links: PMID incorrectly converts space to underscore" --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 0afae1caad..c84ccd462e 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -33,7 +33,7 @@ class Linker { $same = ($link == $text); $link = urldecode( $link ); $link = $wgContLang->checkTitleEncoding( $link ); - $link = preg_replace( '/[\\x00-\\x1f_]/', ' ', $link ); + $link = preg_replace( '/[\\x00-\\x1f]/', ' ', $link ); $link = htmlspecialchars( $link ); $r = ($class != '') ? " class='$class'" : " class='external'"; -- 2.20.1